home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1994 December / PSL Monthly Shareware CD-ROM (Public Software Library)(December 1994).bin / prgmming / dos / tools1 / tsr.txt < prev    next >
Text File  |  1991-10-21  |  2KB  |  31 lines

  1.  
  2.         WRITING STABLE TERMINATE AND STAY RESIDENT(TSR) SOFTWARE:
  3.                     SOMETHING THEY'RE NO TELLING US?
  4. ------------------------------------------------------------------------------
  5.  
  6. Through the research and development of our Task Switching program we stumbled
  7. onto a problem and couldn't understand why it was occurring. It was the dreaded
  8. system lockup (crash) for no indentified reason. We contacted several past
  9. Microsoft people as well as continued to study the problem closely.
  10.  
  11. We then discovered that stable programs such as SideKick, Windows, Novell's
  12. IPX, and TSR Utilities written by past DOS authors were hooking interrupts for
  13. no apparent reason, and were just chaining them back to the original vectors.
  14. We again contacted prior employees at Microsoft, and got the run around. Now
  15. we suspect, they were under Trade secret agreements and could not answer
  16. our questions.
  17.  
  18. It seems that all stable TSR programs (or ones that simulate a TSR, like the
  19. Menu System I Plus Program Manager 3.0) must hook and chain the following
  20. interrupts back to their original vectors (as well as the normal interrupts
  21. which must be hooked):
  22.  
  23.  INT C8, INT CE, INT CF, INT F0, INT F3, INT F5, INT FD, and INT FF
  24.  
  25. It is not clear why this must be done, but if you use one of the MCB chain
  26. walkers that are included with the book UNDOCUMENTED DOS (Authored by Andrew
  27. Schulman), you will see that all of the above mentioned programs do hook these
  28. interrupts, and happen to be the most stable on the market.
  29.  
  30. This article as written by Mark Vitt on October 1st, 1991, EMAIL 70053,2236
  31.